package project.common;

import java.io.Serializable;
import java.util.HashMap;

/**
 * @author oldliu
 * @since 1.0
 */
public class Response extends HashMap<String,Object> implements Serializable {
    private boolean success;
    private String msg;
    public Response(){

    }
    public Response(boolean b){
        this.success=b;
    }
    public Response(boolean b,String msg){
        this.success=b;
        this.msg=msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
